//
//  RSImageOperationVC.m
//  RSTools
//
//  Created by thinkjoy on 2017/9/13.
//  Copyright © 2017年 杜瑞胜. All rights reserved.
//

#import "RSImageOperationVC.h"
#import "UIImage+Rotate.h"

@interface RSImageOperationVC ()

@property   (nonatomic,weak) IBOutlet UIImageView * mainImgV;

@end

@implementation RSImageOperationVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
//旋转
- (IBAction)clickRotationStepper:(UIStepper *)sender {
    UIImage * img   =   [UIImage imageNamed:@"106.png"];
    self.mainImgV.image =   [img imageRotatedByDegrees:sender.value];
}

//缩放
- (IBAction)clickZoomingStepper:(UIStepper *)sender {
    UIImage * img   =   [UIImage imageNamed:@"106.png"];
    self.mainImgV.image =   [img imageCompressTargetWidth:sender.value];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
